#ifndef REGISTER_DIALOG_H
#define REGISTER_DIALOG_H

#include <QDialog>

namespace Ui {
class register_dialog;
}

class register_dialog : public QDialog
{
    Q_OBJECT

public:
    explicit register_dialog(QWidget *parent = nullptr);
    ~register_dialog();

private slots:
    void on_password_textChanged(const QString &arg1);

    void on_repassword_textChanged(const QString &arg1);

    bool checkPassword();

    void setIfLegal();

    void on_user_name_textChanged(const QString &arg1);

    void on_tel_number_textChanged(const QString &arg1);

    void on_check_password_clicked();

    void on_check_repassword_clicked();

    void on_submit_clicked();

private:
    Ui::register_dialog *ui;
    QPixmap right;
    QPixmap mistake;
};

#endif // REGISTER_DIALOG_H
